﻿using System.Collections;

namespace Collections;

public class ArrayListItem
{
    public void MyArrayList()
    {
        ArrayList list = new ArrayList() { 100, 'a' };

        list.Add(1);

        list.Remove(100);

        // foreach
        foreach (var item in list)
        {
            Console.WriteLine(item);
        }
        
        
    }
}